import { BuildHook } from "../@types";
import { compile } from "./compile";

const PACKAGE_NAME = "tk-inline-html";

export const throwError: BuildHook.throwError = true;

export const load: BuildHook.load = async function () {
    console.log(`[${PACKAGE_NAME}] Load ${PACKAGE_NAME} in builder.`);
};

export const unload: BuildHook.unload = async function () {
    console.log(`[${PACKAGE_NAME}] Unload ${PACKAGE_NAME} in builder.`);
};

export const onAfterBuild: BuildHook.onAfterBuild = async function (options, result) {
    compile(options, result);
};
